package com.atguigu.day17.work2;

import java.util.Scanner;

public class Work02 {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        System.out.println("输入QQ号:");
        String qq=input.next();

        System.out.println("这个QQ是否正确:");
        if(qq.matches("[1-9][0-9]{4,11}+")){
            System.out.println(true);
        }else {
            System.out.println(false);
        }
        input.close();
    }
}
